package com.cbg.es.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 表保存DTO
 *
 * @author wangjuzheng
 * @date 2019-10-17
 **/
@Data
public class EsTableEditDTO implements Serializable {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 表ID
     */
    @ApiModelProperty(value = "表ID")
    private Long tableId;

    /**
     * 表显示名
     */
    @ApiModelProperty(value = "表显示名")
    @NotBlank(message = "请输入表名称")
    @Length(max = 32,message = "表显示名称不要超过32位")
    private String tableNameAlias;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @NotNull(message = "请选择状态")
    private Byte status;
}
